using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GMap.NET;
using GMap.NET.WindowsForms;
using GMap.NET.MapProviders;
using GMap.NET.WindowsForms.Markers;
using GMap.NET.Projections;

namespace Comteck.Winforms.Controls {
  /// <summary>
  /// 因为Gmap.net默认的地图provider只支持google bing 等 需单独扩展一个高德地图数据源接口 add by alex
  /// </summary>
  public abstract class AMapProviderBase : GMapProvider {
    public AMapProviderBase() {
      MaxZoom = null;
      RefererUrl = "http://www.amap.com/";
    }

    public override PureProjection Projection => MercatorProjection.Instance;
    GMapProvider[] overLays;
    /// <summary>
    /// 图层
    /// </summary>
    public override GMapProvider[] Overlays {
      get {
        if (overLays == null) {
          overLays = new GMapProvider[] { this };
        }
        return overLays;
      }
    }


  }
}
